<?php
include "header.php";

if (!isset($_SESSION["username"])){
	echo "<script>window.location.href='login.php'</script>";
}
else{
?>
<script>change_picture("admin");</script>
<h1>Manage Home</h1>
<div>
<span>Welcome, <?php echo $_SESSION["username"]?></span>&nbsp&nbsp<a href = "logout.php">Log out</a><br />
<a href = "changepassword.php">Change Password</a>
</div>
<hr />
<div>
<a href = "managecourses.php">Manage Courses</a><br />
<a href = "managegroups.php">Manage Groups</a><br />
<a href = "managerequirements.php">Manage Requirements</a><br />
<a href = "manageprograms.php">Manage Programs</a><br />
</div>
<?php
}
include "footer.php";